<?php if($data){ ?>
<div id="sanpham_right">
	<div id="title_right">
		<p id="title_right_left"></p>
		<div id="title_right_center">
			<p class="chu_title">DANH SÁCH LOẠI HÀNG</p>
		</div>
		<p id="title_right_right"></p>
	</div>
	<div id="noidung_right">
		<!-- gio hang -->
		<form name="update" action="" method="post">
			<div id="con_giohang">
				<table width="570" cellspacing="0" cellpadding="0" border="1"
					class="table_cart">
					<tr class="bg_cart_giohang" height="30px">
						<td width="200" valign="top">
							<div align="center">
								<b> Tên chung loại</b>
							</div>
						</td>
						<td width="210" valign="top">
							<div align="center">
								<b> Tên loại hàng </b>
							</div>
						</td>
						<td width="80" valign="top">
							<div align="center">
								<img src="public/images/b_edit.png" /> Sửa
							</div>
						</td>
						<td width="80" valign="top">
							<div align="center">
								<img src="public/images/b_drop.png" /> Xóa
							</div>
						</td>
					</tr>
					<tr>
					<?php foreach ($data['list'] as $key => $value) { ?>
						<td width="200" valign="top">
							<div align="center">
							<?php
							if(is_array($data['listcl'])){
								foreach ($data['listcl'] as $item){
									if($item['MaCL']==$value['MaCL']){
										echo $item['TenCL'];
									}
								}
							}
							?>
							</div>
						</td>
						<td width="210" valign="top">
							<div align="left">
							<?php echo $value['TenLH'];?>
							</div>
						</td>
						<td width="80" valign="top">
							<div align="center">
								<a
									href="admin.php?mod=updateloaihang&ma=<?php echo $value['MaLH'];?>">
									Sửa </a>
							</div>
						</td>
						<td width="80" valign="top">
							<div align="center">
								<a
									href="admin.php?mod=delloaihang&ma=<?php echo $value['MaLH'];?>">
									Xóa</a>
							</div>
						</td>
					</tr>
					<?php
					}
					?>
				</table>
				</div>
		
		</form>
		<!-- end -->
	</div>
</div>
					<?php }?>